var cheerio = require('cheerio')

var h = `
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="http://s.ip-cdn.com" rel="dns-prefetch" />
<title>123.125.114.144 - IP.cn - IP 地址查询 | 地理位置 | 手机归属地</title>
<meta name="robots" content="all" />
<meta name="Keywords" content="ip,ip查询,手机ip,本机ip,外网ip,ip地址查询,手机号,归属地,123.125.114.144">
<meta name="Description" content="专业本机 IP 地址查询、手机 IP 地址、地理位置查询、IP 数据库、手机号归属地查询、电话号码黄页查询，可查广告、骚扰、快递、银行、保险、房地产、中介电话。">
<link href='http://s.ip-cdn.com/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, minimum-scale=0.5">
<meta name="format-detection" content="telephone=no">
<!--[if lt IE 8]>
<script src="http://s.ip-cdn.com/js/ie8.js"></script>
<![endif]-->
<link href='http://s.ip-cdn.com/css/main.css' rel='stylesheet' type='text/css'>
</head>
<body onLoad="document.fs.ip.focus()">
<div class="container-fluid">
	<div class="header">
		<a href="/"><img src="http://s.ip-cdn.com/img/logo.gif"></a>
	</div>

	<div class="mainbar">
		<ul class="nav nav-pills center-pills">
			<li class="active"><a href="/">IP 查询</a></li>
			<li><a href="db.php">手机、电话号码数据库</a></li>
			<li><a href="dns.html">DNS</a></li>
			<li><a href="chnroutes.html">IP 列表</a></li>
		</ul>
	</div>

	<div class="searchform">
		<form name="fs" action="index.php" method="GET" class="form-search">
			<input name="ip" type="text" placeholder="请输入要查询的域名或 IP 地址" class="span3">
			<input id="s" type="submit" class="btn btn-primary" value="查询">
		</form>
	</div>
	
	<div id="result">
        <div class="well">
            <p>您查询的 IP：<code>123.125.114.144</code></p>
            <p>所在地理位置：<code>北京市 联通</code></p>
            <p>GeoIP: Beijing, China</p><p>China Unicom Beijing</p>
        </div>
    </div>

	<div width="100%" align="center">
		<script charset="gbk" src="http://p.tanx.com/ex?i=mm_17355789_10878156_36772190"></script>
	</div>

        <div width="100%" align="center">
		<div name="dashmain" id="dash-main-id-87884f" class="dash-main-2 87884f-9.9"></div><script type="text/javascript" charset="utf-8" src="http://www.dashangcloud.com/static/ds.js"></script>
        </div>
	<div class="footer">
		<p>©2006-2017 IP.cn <a href="http://www.miitbeian.gov.cn/" target="_blank">沪ICP备15005128号-3</a> <script src="http://s19.cnzz.com/stat.php?id=123770&web_id=123770" language="JavaScript"></script></p>
	</div>
</div>
</body>
</html>
`

var $ = cheerio.load(h)

let plist = $('#result>.well>p')
for (let i = 0; i < plist.length; i++) {
    console.log(plist.eq(i).text())
}